package com.woniu.platform.service;

import com.woniu.platform.entity.PlatformOrderForm;
import com.woniu.platform.entity.PlatformShop;
import com.woniu.util.utils.HttpResult;
import com.woniu.util.utils.RequestResult;

public interface PlatformShopService {
    /**
     * 新增商品
     * @param platformShop
     * @return
     */
    HttpResult insertGood(PlatformShop platformShop);

    /**
     * 修改商品
     * @param platformShop
     * @return
     */
    HttpResult updateGood(PlatformShop platformShop);

    /**
     * 根据商品id查询
     * @param goodId
     * @return
     */
    HttpResult selectGoodById(int goodId);

    /**
     * 查询带分页
     * @param requestResult
     * @return
     */
    HttpResult selectGoods(RequestResult<PlatformShop> requestResult);

    /**
     * 兑换商品
     * @param platformOrderForm
     * @return
     */
    HttpResult exchangeGoods(PlatformOrderForm platformOrderForm);
}
